package com.printeverywhere.dto;

import java.util.Date;

/**
 * UserAffiliation entity.
 *
 * @author MyEclipse Persistence Tools
 */

public class UserAffiliation implements java.io.Serializable {

	// Fields

	private Integer id;
	private User userByReferalUserId;
	private User userByUserId;
	private Date startDate;
	private Date endDate;
	private Boolean isPercentage;
	private Boolean isBonus;
	private Double bonusAvailable;
	private Double percentageCharge;
	private Double changePercentage;
	private Double percentageBonus;

	// Constructors

	/** default constructor */
	public UserAffiliation() {
	}

	/** minimal constructor */
	public UserAffiliation(Date startDate, Boolean isPercentage) {
		this.startDate = startDate;
		this.isPercentage = isPercentage;
	}

	/** full constructor */
	public UserAffiliation(User userByReferalUserId, User userByUserId,
			Date startDate, Date endDate, Boolean isPercentage,
			Double bonusAvailable, Double percentageCharge,
			Double changePercentage, Double percentageBonus, Boolean isBonus) {
		this.userByReferalUserId = userByReferalUserId;
		this.userByUserId = userByUserId;
		this.startDate = startDate;
		this.endDate = endDate;
		this.isPercentage = isPercentage;
		this.isBonus = isBonus;
		this.bonusAvailable = bonusAvailable;
		this.percentageCharge = percentageCharge;
		this.changePercentage = changePercentage;
		this.percentageBonus = percentageBonus;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUserByReferalUserId() {
		return this.userByReferalUserId;
	}

	public void setUserByReferalUserId(User userByReferalUserId) {
		this.userByReferalUserId = userByReferalUserId;
	}

	public User getUserByUserId() {
		return this.userByUserId;
	}

	public void setUserByUserId(User userByUserId) {
		this.userByUserId = userByUserId;
	}

	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Boolean getIsPercentage() {
		return this.isPercentage;
	}

	public void setIsPercentage(Boolean isPercentage) {
		this.isPercentage = isPercentage;
	}

	public Double getBonusAvailable() {
		return this.bonusAvailable;
	}

	public void setBonusAvailable(Double bonusAvailable) {
		this.bonusAvailable = bonusAvailable;
	}

	public Double getPercentageCharge() {
		return this.percentageCharge;
	}

	public void setPercentageCharge(Double percentageCharge) {
		this.percentageCharge = percentageCharge;
	}

	public Double getChangePercentage() {
		return this.changePercentage;
	}

	public void setChangePercentage(Double changePercentage) {
		this.changePercentage = changePercentage;
	}

	public Double getPercentageBonus() {
		return percentageBonus;
	}

	public void setPercentageBonus(Double percentageBonus) {
		this.percentageBonus = percentageBonus;
	}

	public Boolean getIsBonus() {
		return isBonus;
	}

	public void setIsBonus(Boolean isBonus) {
		this.isBonus = isBonus;
	}

}